package com.bruce.demo2.patterns.demo1.creational.demo04.Prototype.demo2;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 奖状类: demo1浅拷贝的弊端
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/11 22:21
 */
public class Citation implements Cloneable {

    private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    public void show() {
        System.out.println(this.student.getName() + " 同学：在2021学年第一学期中表现优秀，被评为三号学生，特发此状！！！");
    }

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
